<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function getSum(){
            var english=90;
            var math=84;
            var maogai=78;
            var web=100;
            alert("小明的总成绩是："+parseInt(english+math+maogai+web));
        }
        getSum();
        
    </script>
</body>
</html>